﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace GenetecHackathonCod3
{
    public partial class NewNote : PhoneApplicationPage
    {
        public NewNote()
        {
            InitializeComponent();
        }

        void SaveReport_Click(object sender, EventArgs e)
        {
            MainPage.reports.ElementAt(MainPage.selected).getNotes().Add(new Note(title.Text, text.Text));
            NavigationService.Navigate(new Uri("/EditReport.xaml", UriKind.Relative));
            MainPage.save();
        }
    }
}